package cn.ruleengine.web.vo.ruleset;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 规则集ecahrt数据回参
 *
 * @author xianrensawang
 * @date 2021/7/14
 */
@Data
public class RuleSetEchartVO {

    private List<Node> nodes;

    private List<Link> links;


    @Data
    public static class Node {

        @ApiModelProperty("节点名称")
        private String name;

        @ApiModelProperty("X轴坐标")
        private Integer x;

        @ApiModelProperty("Y轴坐标")
        private Integer y;

        @ApiModelProperty("count")
        private Integer count;

    }

    @Data
    public static class Link {
        @ApiModelProperty("源")
        private Integer source;
        @ApiModelProperty("目标")
        private Integer target;
    }
}
